﻿namespace RL
{
    using System;
    using System.ComponentModel;

    public class PastaList : StringConverter
    {
        private string[] PastaNames = new string[] { "Fettuccini", "Fusilli", "Lasagna", "Linguini", "Spaghetti", "Macaroni", "Manicotti", "Penne", "Rigatoni", "Rotini", "Vermicelli", "Wagon Wheels", "Chef Boyardee" };

        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            return new TypeConverter.StandardValuesCollection(this.PastaNames);
        }

        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
        {
            return true;
        }

        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }
    }
}

